import service from '@/utils/request'

// @Tags ClientPlatform
// @Summary 创建登录平台
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ClientPlatform true "创建登录平台"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /client/createClientPlatform [post]
export const createClientPlatform = (data) => {
  return service({
    url: '/client/createClientPlatform',
    method: 'post',
    data
  })
}

// @Tags ClientPlatform
// @Summary 删除登录平台
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ClientPlatform true "删除登录平台"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /client/deleteClientPlatform [delete]
export const deleteClientPlatform = (data) => {
  return service({
    url: '/client/deleteClientPlatform',
    method: 'delete',
    data
  })
}

// @Tags ClientPlatform
// @Summary 批量删除登录平台
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除登录平台"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /client/deleteClientPlatform [delete]
export const deleteClientPlatformByIds = (data) => {
  return service({
    url: '/client/deleteClientPlatformByIds',
    method: 'delete',
    data
  })
}

// @Tags ClientPlatform
// @Summary 更新登录平台
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ClientPlatform true "更新登录平台"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /client/updateClientPlatform [put]
export const updateClientPlatform = (data) => {
  return service({
    url: '/client/updateClientPlatform',
    method: 'put',
    data
  })
}

// @Tags ClientPlatform
// @Summary 用id查询登录平台
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ClientPlatform true "用id查询登录平台"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /client/findClientPlatform [get]
export const findClientPlatform = (params) => {
  return service({
    url: '/client/findClientPlatform',
    method: 'get',
    params
  })
}

// @Tags ClientPlatform
// @Summary 分页获取登录平台列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取登录平台列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /client/getClientPlatformList [get]
export const getClientPlatformList = (params) => {
  return service({
    url: '/client/getClientPlatformList',
    method: 'get',
    params
  })
}
